package mythread.demo001;

public class MyThread15 extends Thread {

    private int count = 0;



    @Override
    public void run() {
        long begint = System.currentTimeMillis();
        for (int i = 0; i < 50000000; i++) {
            count+= i;
            Thread.yield();
        }
        long endt = System.currentTimeMillis();

        System.out.println("TIME - "+ (endt-begint) +"ms");
    }
}
